namespace UnityEngine.Recorder.Input
{
	public class ScreenCaptureInput : RecorderInput
	{
		private bool m_ModifiedResolution;

		public Texture2D image
		{
			get;
			private set;
		}

		public ScreenCaptureInputSettings scSettings => (ScreenCaptureInputSettings)base.settings;

		public int outputWidth
		{
			get;
			protected set;
		}

		public int outputHeight
		{
			get;
			protected set;
		}

		public override void NewFrameReady(RecordingSession session)
		{
			image = ScreenCapture.CaptureScreenshotAsTexture();
		}

		public override void BeginRecording(RecordingSession session)
		{
			int width = Screen.width;
			int height = Screen.height;
		}

		public override void FrameDone(RecordingSession session)
		{
			UnityHelpers.Destroy(image);
			image = null;
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing)
			{
			}
			base.Dispose(disposing);
		}
	}
}
